<ul>
    <li>
        <a [routerLink]="['/','register']">注册</a>
        <a [routerLink]="['/','login']">登录</a>
    </li>
</ul>
<router-outlet></router-outlet>